<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="/layui/css/layui.css">
</head>

<body>

  <form class="layui-form" action="./updateacc" th:each="cash:${accs}" method="POST">
    <div class="layui-form-item">
      <label class="layui-form-label">银行账号</label>
      <div class="layui-input-inline">
        <input type="text" name="account" th:value="${cash.account}" lay-verify="required" class="layui-input"
          readonly="readonly">
      </div>
    </div>
    <div class="layui-form-item layui-form-text">
      <label class="layui-form-label">余额</label>
      <div class="layui-input-inline">
        <textarea name="sum" placeholder="请输入内容" th:text="${cash.sum}" class="layui-input layui-bg-red"></textarea>
      </div>
      <div class="layui-form-mid layui-word-aux">管理员模式谨慎操作</div>
    </div>

    <div class="layui-form-item layui-form-text">
      <label class="layui-form-label">备注</label>
      <div class="layui-input-inline">
        <textarea name="note" placeholder="请输入内容" th:text="${cash.note}"
          class="layui-textarea layui-bg-green"></textarea>
      </div>
    </div>
    <div class="layui-form-item">
      <div class="layui-input-block">
        <button class="layui-btn layui-bg-red" lay-submit lay-filter="formDemo">确认修改</button>
        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
      </div>
    </div>
  </form>


  <script src="/layui/layui.js"></script>
  <script>
    layui.use('form', function () {
      var form = layui.form;
      form.render();
    });

  </script>
</body>

</html>